package com.ruoyi.project.system.mapper;

import com.ruoyi.project.system.domain.SiyuBaseinfo;
import com.ruoyi.project.system.domain.SiyuImmovable;
import com.ruoyi.project.system.domain.SiyuQuery;
import com.ruoyi.project.system.domain.vo.SiyuQueryVo;
import com.ruoyi.project.system.domain.vo.UserQueryVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.*;

/**
 * 进件记录Mapper接口
 */
@Mapper
public interface SiyuQueryMapper {

    int insertQueryinfo(Integer queryId, Integer productId, String info, Date nowDate);

    int updateQueryinfo(Integer id, String info, Date nowDate);

    HashMap<String, Object> selectQueryinfo(Integer productId, Integer queryId);

    int insertSiyuImmovable(SiyuImmovable immovable);

    int updateSiyuImmovablePersonalRentApply(Integer id, String personalRentApply, Date updateTime);

    HashMap<String, Object> selectSiyuImmovableByQueryId(Integer queryId);

    SiyuBaseinfo authInfo(Long queryId);

    SiyuQuery selectSiyuQueryByMoreKeyword(String moreKeyword);

    HashMap<String, Object> selectAuthKey(Integer queryId);

    SiyuQuery selectSiyuQueryByQueryId(Integer queryId);

    List<UserQueryVo> subQueryList(UserQueryVo userQueryVo);

    int insertSiyuQuery(SiyuQuery siyuQuery);

    int updateYysInfo(String moreKeyword, String yysInfo);

    int updateYysReport(String moreKeyword, String yysReport);

    int updateSiyuQuery(SiyuQuery siyuQuery);

    int deleteSiyuQueryByQueryId(Integer queryId);

    int deleteSiyuQueryByQueryIds(Integer[] queryIds);
}
